class Animal<T> {
  name: T;

  constructor(name: T) {
    this.name = name;
  }
}

const a1 = new Animal("张三");

a1.name;

const a2 = new Animal<number>(18);
a2.name;

export {};
